package com.hibernate.view;


import org.hibernate.FlushMode;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.support.OpenSessionInViewFilter;

public class CoustmSessionInViewFilter extends OpenSessionInViewFilter{
	
	public CoustmSessionInViewFilter(){
		super.setFlushMode(FlushMode.AUTO);
	}

	protected void closeSession(Session session, SessionFactory sessionFactory) {
		session.flush();
		//session.getTransaction().commit();
		super.closeSession(session, sessionFactory);
	}
 
}